home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / editors / pur_c_vi.zoo / stevie.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-12  |  1.4 KB  |  62 lines

  1. /*
  2.  * STevie - ST editor for VI enthusiasts.    ...Tim Thompson...twitch!tjt...
  3.  */
  4.  
  5. /* One (and only 1) of the following 3 defines should be uncommented. */
  6. /* Most of the code is machine-independent.  Most of the machine- */
  7. /* dependent stuff is in window.c */
  8.  
  9. #define ATARI        1    /* For the Atari ST */
  10. /*#define UNIXPC    1    /* The AT&T UNIX PC (console) */
  11. /*#define TCAP        1    /* For termcap-based terminals */
  12.  
  13. #define FILELENG 64000
  14. #define NORMAL 0
  15. #define CMDLINE 1
  16. #define INSERT 2
  17. #define APPEND 3
  18. #define FORWARD 4
  19. #define BACKWARD 5
  20. #define WORDSEP " \t\n()[]{},;:'\"-="
  21.  
  22. #define CHANGED Changed=1
  23. #define UNCHANGED Changed=0
  24.  
  25. #ifndef NULL
  26. #define NULL 0
  27. #endif
  28.  
  29. struct charinfo {
  30.     char ch_size;
  31.     char *ch_str;
  32. };
  33.  
  34. extern struct charinfo chars[];
  35.  
  36. extern int State;
  37. extern int Rows;
  38. extern int Columns;
  39. extern char *Realscreen;
  40. extern char *Nextscreen;
  41. extern char *Filename;
  42. extern char *Filemem;
  43. extern char *Filemax;
  44. extern char *Fileend;
  45. extern char *Topchar;
  46. extern char *Botchar;
  47. extern char *Curschar;
  48. extern char *Insstart;
  49. extern int Cursrow, Curscol, Cursvcol;
  50. extern int Prenum;
  51. extern int Debug;
  52. extern int Changed;
  53. extern int Binary;
  54. extern char Redobuff[], Undobuff[], Insbuff[];
  55. extern char *Uncurschar, *Insptr;
  56. extern int Ninsert, Undelchars;
  57.  
  58. char *malloc(), *strchr(), *strsave(), *alloc(), *strcpy();
  59.  
  60. char *nextline(), *prevline(), *coladvance(), *ssearch();
  61. char *fwdsearch(), *bcksearch();
  62.